package com.bmft.runnable;

import com.bmft.server.BootNettyServer;
import lombok.SneakyThrows;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @Author Jarvan
 * @create 2020/9/1 16:05
 */
@Component
public class BootNettyServerRunnable implements Runnable {
    @Autowired
    BootNettyServer bootNettyServer;

    @SneakyThrows
    @Override
    public void run() {
        System.out.println(bootNettyServer);
        bootNettyServer.bind(12345);
        System.out.println("=============port 12345..监听中==============");
    }
}
